#ifndef _LOG_H_
#define _LOG_H_

#include <iostream>
#include <string>

using namespace std;

#define Debug 0
#define Notice 0
#define Warning 0
#define Error 0

const string msg[] = {
    "Debug",
    "Notice",
    "Warning",
    "Error"};

ostream &Log(string message, int level)
{
    cout << "|" << (unsigned)time(nullptr) << "|" << msg[level] << "|" << message;
    return cout;
}

#endif
